/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * JInternalFrameAdministrative.java
 *
 * Created on Dec 3, 2011, 9:09:15 AM
 */
package callcenter;

import java.util.Locale;
import java.util.ResourceBundle;
import java.util.Vector;
import javax.swing.border.TitledBorder;
import Database.Administative;
import java.sql.*;
import Util.Check;
import java.io.File;
import javax.swing.ImageIcon;
import javax.swing.JOptionPane;
import javax.swing.table.DefaultTableModel;

/**
 *
 * @author user
 */
public class JInternalFrameAdministrative extends javax.swing.JInternalFrame {

    private String langue = new String();
    private String country = new String();
    private String chuoi = new String();
    private Locale lc = null;
    private ResourceBundle rb = null;
    private int b;
    private File f= new File(".");
    
    
    private int count=1;
   private boolean kt = false;
   private  Vector<Vector<Object>> vvo;

    /** Creates new form JInternalFrameAdministrative */
    public JInternalFrameAdministrative() {
        initComponents();
        Medium.jifa = this;
        b = Medium.jf1.KQ();
        if (b == 0) {
            //callcenter/resources/JInternalFrameAdministrative_en_US
            //java.util.ResourceBundle.getBundle("callcenter/resources/JInternalFrameAdministrative_en_US
            Translate("en", "English", "JInternalFrameAdministrative_en_US");
        } else {
            Translate("vi", "Vietnamese", "JInternalFrameAdministrative_vi_VN");
        }
        
        Showlist(0,5);
        jButtonPrevious.setEnabled(false);
      //  Administative.AdministativePT(1);
        
        
        
        
        
        
        
    }

    private void Translate(String landue, String tenqg, String chuoi) {

        //callcenter/resources/JInternalFrameAdministrative
        lc = new Locale(landue, tenqg);
        rb = ResourceBundle.getBundle("callcenter/resources/" + chuoi, lc);
        jTabbedPane1.setTitleAt(0, rb.getString("tab1"));
        jTabbedPane1.setTitleAt(1, rb.getString("tab2"));
        TitledBorder t = (TitledBorder) this.jPanel3.getBorder();
        t.setTitle(rb.getString("jPanel3.border.title"));
        jLabelFullName.setText(rb.getString("jLabelFullName.text"));
        jLabelEmail.setText(rb.getString("jLabelEmail.text"));
       /* jLabel5.setText(rb.getString("jLabel5.text"));
        jLabel2.setText(rb.getString("jLabel2.text"));
        jLabel4.setText(rb.getString("jLabel4.text"));
        jLabel6.setText(rb.getString("jLabel6.text"));
        jLabel8.setText(rb.getString("jLabel8.text"));
        jButton1.setText(rb.getString("jButton1.text"));
        jButton2.setText(rb.getString("jButton2.text"));
        jButton3.setText(rb.getString("jButton3.text"));
        jButton4.setText(rb.getString("jButton4.text"));*/
        jLabel7.setText(rb.getString("jLabel7.text"));
        jLabelAccountName.setText(rb.getString("jLabelAccountName.text"));
        jButtonSearch.setText(rb.getString("jButtonSearch.text"));
        TitledBorder t1 = (TitledBorder) this.jPanel61.getBorder();
        t1.setTitle(rb.getString("jPanel61.border.title"));
        TitledBorder t2 = (TitledBorder) this.jPanel43.getBorder();
        t2.setTitle(rb.getString("jPanel43.border.title"));

        lc = new Locale(landue, tenqg);
        rb = ResourceBundle.getBundle("callcenter/resources/" + chuoi, lc);
        jTabbedPane1.setTitleAt(0, rb.getString("tab1"));
        jTabbedPane1.setTitleAt(1, rb.getString("tab2"));
        TitledBorder t3 = (TitledBorder) this.jPanel3.getBorder();
        t3.setTitle(rb.getString("jPanel3.border.title"));

        jLabelFullName.setText(rb.getString("jLabelFullName.text"));
        jLabelEmail.setText(rb.getString("jLabel3.text"));
        /*jLabel5.setText(rb.getString("jLabel5.text"));
        jLabel2.setText(rb.getString("jLabel2.text"));
        jLabel4.setText(rb.getString("jLabel4.text"));
        jLabel6.setText(rb.getString("jLabel6.text"));
        jLabel8.setText(rb.getString("jLabel8.text"));
        jButton1.setText(rb.getString("jButton1.text"));
        jButton2.setText(rb.getString("jButton2.text"));
        jButton3.setText(rb.getString("jButton3.text"));
        jButton4.setText(rb.getString("jButton4.text"));*/
       // jLabelKTPassWord.setText(rb.getString("jLabelKTPassWord.text"));
        //jLabelKTEmail.setText(rb.getString("jLabelKTEmail.text"));
        jLabelEmail.setText(rb.getString("jLabelEmail.text"));
        jLabelUserName.setText(rb.getString("jLabelUserName.text"));
        jLabelAddress.setText(rb.getString("jLabelAddress.text"));
        jLabelPhone.setText(rb.getString("jLabelPhone.text"));
        jLabelAuthority.setText(rb.getString("jLabelAuthority.text"));
        jButtonAdd.setText(rb.getString("jButtonAdd.text"));
        jButtonEdit.setText(rb.getString("jButtonEdit.text"));
        jButtonDelete.setText(rb.getString("jButtonDelete.text"));
        jButtonRefresh.setText(rb.getString("jButtonRefresh.text"));
        jButtonNext.setText(rb.getString("jButtonNext.text"));
        jButtonPrevious.setText(rb.getString("jButtonPrevious.text"));
        jButtonEnter.setText(rb.getString("jButtonEnter.text"));
        

        jLabel7.setText(rb.getString("jLabel7.text"));
        jLabelAccountName.setText(rb.getString("jLabelAccountName.text"));
        jButtonSearch.setText(rb.getString("jButtonSearch.text"));
        jButtonNextSearch.setText(rb.getString("jButtonNextSearch.text"));
        jButtonPreviousSearch.setText(rb.getString("jButtonPreviousSearch.text"));
        jButtonEnterSearch.setText(rb.getString("jButtonEnterSearch.text"));
        TitledBorder t5 = (TitledBorder) this.jPanel61.getBorder();
        t5.setTitle(rb.getString("jPanel61.border.title"));
        TitledBorder t6 = (TitledBorder) this.jPanel43.getBorder();
        t6.setTitle(rb.getString("jPanel43.border.title"));
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jTextField1 = new javax.swing.JTextField();
        jTextField3 = new javax.swing.JTextField();
        jTextField4 = new javax.swing.JTextField();
        jTextField9 = new javax.swing.JTextField();
        jPanel48 = new javax.swing.JPanel();
        jPanel14 = new javax.swing.JPanel();
        jTabbedPane1 = new javax.swing.JTabbedPane();
        jPanel1 = new javax.swing.JPanel();
        jPanel3 = new javax.swing.JPanel();
        jPanel4 = new javax.swing.JPanel();
        jPanel6 = new javax.swing.JPanel();
        jPanel7 = new javax.swing.JPanel();
        jPanel8 = new javax.swing.JPanel();
        jPanel19 = new javax.swing.JPanel();
        jPanel20 = new javax.swing.JPanel();
        jLabelFullName = new javax.swing.JLabel();
        jPanel21 = new javax.swing.JPanel();
        jLabelPassWord = new javax.swing.JLabel();
        jPanel22 = new javax.swing.JPanel();
        jLabelEmail = new javax.swing.JLabel();
        jPanel23 = new javax.swing.JPanel();
        jPanel24 = new javax.swing.JPanel();
        jPanel9 = new javax.swing.JPanel();
        jPanel10 = new javax.swing.JPanel();
        jPanel25 = new javax.swing.JPanel();
        jPanel26 = new javax.swing.JPanel();
        jLabelKTFullName = new javax.swing.JLabel();
        jPanel27 = new javax.swing.JPanel();
        jLabelKTPassWord = new javax.swing.JLabel();
        jPanel28 = new javax.swing.JPanel();
        jLabelKTEmail = new javax.swing.JLabel();
        jPanel29 = new javax.swing.JPanel();
        jPanel30 = new javax.swing.JPanel();
        jPanel11 = new javax.swing.JPanel();
        jPanel12 = new javax.swing.JPanel();
        jPanel13 = new javax.swing.JPanel();
        jTextFieldFullName = new javax.swing.JTextField();
        jPanel15 = new javax.swing.JPanel();
        jPasswordFieldPassWord = new javax.swing.JPasswordField();
        jPanel16 = new javax.swing.JPanel();
        jTextFieldEmail = new javax.swing.JTextField();
        jPanel17 = new javax.swing.JPanel();
        jPanel18 = new javax.swing.JPanel();
        jPanel5 = new javax.swing.JPanel();
        jPanel31 = new javax.swing.JPanel();
        jPanel68 = new javax.swing.JPanel();
        jPanel102 = new javax.swing.JPanel();
        jLabelUserName = new javax.swing.JLabel();
        jPanel103 = new javax.swing.JPanel();
        jLabelAddress = new javax.swing.JLabel();
        jPanel104 = new javax.swing.JPanel();
        jLabelPhone = new javax.swing.JLabel();
        jPanel105 = new javax.swing.JPanel();
        jLabelAuthority = new javax.swing.JLabel();
        jPanel106 = new javax.swing.JPanel();
        jPanel32 = new javax.swing.JPanel();
        jPanel34 = new javax.swing.JPanel();
        jPanel33 = new javax.swing.JPanel();
        jPanel108 = new javax.swing.JPanel();
        jPanel109 = new javax.swing.JPanel();
        jButtonAdd = new javax.swing.JButton();
        jPanel110 = new javax.swing.JPanel();
        jButtonEdit = new javax.swing.JButton();
        jPanel111 = new javax.swing.JPanel();
        jButtonDelete = new javax.swing.JButton();
        jPanel112 = new javax.swing.JPanel();
        jButtonRefresh = new javax.swing.JButton();
        jPanel113 = new javax.swing.JPanel();
        jPanel35 = new javax.swing.JPanel();
        jPanel36 = new javax.swing.JPanel();
        jPanel63 = new javax.swing.JPanel();
        jPanel64 = new javax.swing.JPanel();
        jLabelKTUserName = new javax.swing.JLabel();
        jPanel65 = new javax.swing.JPanel();
        jLabelKTAddress = new javax.swing.JLabel();
        jPanel66 = new javax.swing.JPanel();
        jLabelKTPhone = new javax.swing.JLabel();
        jPanel67 = new javax.swing.JPanel();
        jLabelKTAuthority = new javax.swing.JLabel();
        jPanel107 = new javax.swing.JPanel();
        jPanel37 = new javax.swing.JPanel();
        jPanel38 = new javax.swing.JPanel();
        jPanel39 = new javax.swing.JPanel();
        jTextFieldUserName = new javax.swing.JTextField();
        jPanel40 = new javax.swing.JPanel();
        jTextFieldAddress = new javax.swing.JTextField();
        jPanel41 = new javax.swing.JPanel();
        jTextFieldPhone = new javax.swing.JTextField();
        jPanel42 = new javax.swing.JPanel();
        jComboBoxAuthority = new javax.swing.JComboBox();
        jPanel62 = new javax.swing.JPanel();
        jPanel43 = new javax.swing.JPanel();
        jPanel77 = new javax.swing.JPanel();
        jPanel79 = new javax.swing.JPanel();
        jPanel80 = new javax.swing.JPanel();
        jPanel89 = new javax.swing.JPanel();
        jLabel10 = new javax.swing.JLabel();
        jPanel81 = new javax.swing.JPanel();
        jPanel82 = new javax.swing.JPanel();
        jButtonPrevious = new javax.swing.JButton();
        jPanel83 = new javax.swing.JPanel();
        jPanel84 = new javax.swing.JPanel();
        jButtonNext = new javax.swing.JButton();
        jPanel85 = new javax.swing.JPanel();
        jPanel87 = new javax.swing.JPanel();
        jPanel86 = new javax.swing.JPanel();
        jTextFieldEnter = new javax.swing.JTextField();
        jPanel88 = new javax.swing.JPanel();
        jButtonEnter = new javax.swing.JButton();
        jPanel78 = new javax.swing.JPanel();
        jScrollPane1 = new javax.swing.JScrollPane();
        jTableadministrative = new javax.swing.JTable();
        jPanel2 = new javax.swing.JPanel();
        jPanel44 = new javax.swing.JPanel();
        jPanel45 = new javax.swing.JPanel();
        jPanel46 = new javax.swing.JPanel();
        jPanel47 = new javax.swing.JPanel();
        jLabel7 = new javax.swing.JLabel();
        jPanel49 = new javax.swing.JPanel();
        jPanel50 = new javax.swing.JPanel();
        jPanel114 = new javax.swing.JPanel();
        jPanel115 = new javax.swing.JPanel();
        jPanel116 = new javax.swing.JPanel();
        jLabelKTSearchAccountNamee = new javax.swing.JLabel();
        jPanel117 = new javax.swing.JPanel();
        jPanel118 = new javax.swing.JPanel();
        jPanel119 = new javax.swing.JPanel();
        jPanel51 = new javax.swing.JPanel();
        jPanel52 = new javax.swing.JPanel();
        jPanel54 = new javax.swing.JPanel();
        jPanel55 = new javax.swing.JPanel();
        jPanel56 = new javax.swing.JPanel();
        jLabelAccountName = new javax.swing.JLabel();
        jPanel57 = new javax.swing.JPanel();
        jPanel58 = new javax.swing.JPanel();
        jPanel59 = new javax.swing.JPanel();
        jPanel53 = new javax.swing.JPanel();
        jPanel60 = new javax.swing.JPanel();
        jPanel69 = new javax.swing.JPanel();
        jPanel70 = new javax.swing.JPanel();
        jTextFieldAccountName = new javax.swing.JTextField();
        jPanel71 = new javax.swing.JPanel();
        jPanel74 = new javax.swing.JPanel();
        jPanel75 = new javax.swing.JPanel();
        jPanel76 = new javax.swing.JPanel();
        jButtonSearch = new javax.swing.JButton();
        jPanel72 = new javax.swing.JPanel();
        jPanel73 = new javax.swing.JPanel();
        jPanel61 = new javax.swing.JPanel();
        jPanel90 = new javax.swing.JPanel();
        jPanel92 = new javax.swing.JPanel();
        jPanel101 = new javax.swing.JPanel();
        jLabelvalues2 = new javax.swing.JLabel();
        jPanel93 = new javax.swing.JPanel();
        jPanel94 = new javax.swing.JPanel();
        jPanel95 = new javax.swing.JPanel();
        jButtonNextSearch = new javax.swing.JButton();
        jPanel96 = new javax.swing.JPanel();
        jPanel97 = new javax.swing.JPanel();
        jButtonPreviousSearch = new javax.swing.JButton();
        jPanel98 = new javax.swing.JPanel();
        jPanel99 = new javax.swing.JPanel();
        jTextField13 = new javax.swing.JTextField();
        jPanel100 = new javax.swing.JPanel();
        jButtonEnterSearch = new javax.swing.JButton();
        jPanel91 = new javax.swing.JPanel();
        jScrollPane2 = new javax.swing.JScrollPane();
        jTableSearch = new javax.swing.JTable();

        org.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application.getInstance(callcenter.CallcenterApp.class).getContext().getResourceMap(JInternalFrameAdministrative.class);
        jTextField1.setText(resourceMap.getString("jTextField1.text")); // NOI18N
        jTextField1.setName("jTextField1"); // NOI18N

        jTextField3.setText(resourceMap.getString("jTextField3.text")); // NOI18N
        jTextField3.setName("jTextField3"); // NOI18N

        jTextField4.setText(resourceMap.getString("jTextField4.text")); // NOI18N
        jTextField4.setName("jTextField4"); // NOI18N

        jTextField9.setText(resourceMap.getString("jTextField9.text")); // NOI18N
        jTextField9.setName("jTextField9"); // NOI18N

        jPanel48.setName("jPanel48"); // NOI18N

        javax.swing.GroupLayout jPanel48Layout = new javax.swing.GroupLayout(jPanel48);
        jPanel48.setLayout(jPanel48Layout);
        jPanel48Layout.setHorizontalGroup(
            jPanel48Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 100, Short.MAX_VALUE)
        );
        jPanel48Layout.setVerticalGroup(
            jPanel48Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 100, Short.MAX_VALUE)
        );

        jPanel14.setName("jPanel14"); // NOI18N

        javax.swing.GroupLayout jPanel14Layout = new javax.swing.GroupLayout(jPanel14);
        jPanel14.setLayout(jPanel14Layout);
        jPanel14Layout.setHorizontalGroup(
            jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 100, Short.MAX_VALUE)
        );
        jPanel14Layout.setVerticalGroup(
            jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 100, Short.MAX_VALUE)
        );

        setClosable(true);
        setIconifiable(true);
        setMaximizable(true);
        setFrameIcon(resourceMap.getIcon("Form.frameIcon")); // NOI18N
        setName("Form"); // NOI18N
        setPreferredSize(new java.awt.Dimension(970, 520));

        jTabbedPane1.setName("jTabbedPane1"); // NOI18N

        jPanel1.setName("jPanel1"); // NOI18N
        jPanel1.setLayout(new java.awt.GridLayout(2, 1));

        jPanel3.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createTitledBorder(""), resourceMap.getString("jPanel3.border.title"), javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, resourceMap.getFont("jPanel3.border.titleFont"), resourceMap.getColor("jPanel3.border.titleColor"))); // NOI18N
        jPanel3.setName("jPanel3"); // NOI18N
        jPanel3.setPreferredSize(new java.awt.Dimension(949, 150));
        jPanel3.setLayout(new java.awt.GridLayout(0, 2));

        jPanel4.setName("jPanel4"); // NOI18N
        jPanel4.setLayout(new java.awt.BorderLayout());

        jPanel6.setName("jPanel6"); // NOI18N

        javax.swing.GroupLayout jPanel6Layout = new javax.swing.GroupLayout(jPanel6);
        jPanel6.setLayout(jPanel6Layout);
        jPanel6Layout.setHorizontalGroup(
            jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 100, Short.MAX_VALUE)
        );
        jPanel6Layout.setVerticalGroup(
            jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 195, Short.MAX_VALUE)
        );

        jPanel4.add(jPanel6, java.awt.BorderLayout.LINE_START);

        jPanel7.setName("jPanel7"); // NOI18N
        jPanel7.setLayout(new java.awt.BorderLayout());

        jPanel8.setName("jPanel8"); // NOI18N
        jPanel8.setLayout(new java.awt.GridLayout(6, 0, 3, 3));

        jPanel19.setName("jPanel19"); // NOI18N

        javax.swing.GroupLayout jPanel19Layout = new javax.swing.GroupLayout(jPanel19);
        jPanel19.setLayout(jPanel19Layout);
        jPanel19Layout.setHorizontalGroup(
            jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 100, Short.MAX_VALUE)
        );
        jPanel19Layout.setVerticalGroup(
            jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 30, Short.MAX_VALUE)
        );

        jPanel8.add(jPanel19);

        jPanel20.setName("jPanel20"); // NOI18N
        jPanel20.setLayout(new java.awt.GridLayout(1, 0));

        jLabelFullName.setText(resourceMap.getString("jLabelFullName.text")); // NOI18N
        jLabelFullName.setName("jLabelFullName"); // NOI18N
        jPanel20.add(jLabelFullName);

        jPanel8.add(jPanel20);

        jPanel21.setName("jPanel21"); // NOI18N
        jPanel21.setLayout(new java.awt.GridLayout(1, 0));

        jLabelPassWord.setText(resourceMap.getString("jLabelPassWord.text")); // NOI18N
        jLabelPassWord.setName("jLabelPassWord"); // NOI18N
        jPanel21.add(jLabelPassWord);

        jPanel8.add(jPanel21);

        jPanel22.setName("jPanel22"); // NOI18N
        jPanel22.setLayout(new java.awt.GridLayout(1, 0));

        jLabelEmail.setText(resourceMap.getString("jLabelEmail.text")); // NOI18N
        jLabelEmail.setName("jLabelEmail"); // NOI18N
        jPanel22.add(jLabelEmail);

        jPanel8.add(jPanel22);

        jPanel23.setName("jPanel23"); // NOI18N

        javax.swing.GroupLayout jPanel23Layout = new javax.swing.GroupLayout(jPanel23);
        jPanel23.setLayout(jPanel23Layout);
        jPanel23Layout.setHorizontalGroup(
            jPanel23Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 100, Short.MAX_VALUE)
        );
        jPanel23Layout.setVerticalGroup(
            jPanel23Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 30, Short.MAX_VALUE)
        );

        jPanel8.add(jPanel23);

        jPanel24.setName("jPanel24"); // NOI18N

        javax.swing.GroupLayout jPanel24Layout = new javax.swing.GroupLayout(jPanel24);
        jPanel24.setLayout(jPanel24Layout);
        jPanel24Layout.setHorizontalGroup(
            jPanel24Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 100, Short.MAX_VALUE)
        );
        jPanel24Layout.setVerticalGroup(
            jPanel24Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 30, Short.MAX_VALUE)
        );

        jPanel8.add(jPanel24);

        jPanel7.add(jPanel8, java.awt.BorderLayout.LINE_START);

        jPanel9.setName("jPanel9"); // NOI18N
        jPanel9.setLayout(new java.awt.BorderLayout());

        jPanel10.setName("jPanel10"); // NOI18N
        jPanel10.setLayout(new java.awt.GridLayout(6, 0, 3, 3));

        jPanel25.setName("jPanel25"); // NOI18N

        javax.swing.GroupLayout jPanel25Layout = new javax.swing.GroupLayout(jPanel25);
        jPanel25.setLayout(jPanel25Layout);
        jPanel25Layout.setHorizontalGroup(
            jPanel25Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 100, Short.MAX_VALUE)
        );
        jPanel25Layout.setVerticalGroup(
            jPanel25Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 30, Short.MAX_VALUE)
        );

        jPanel10.add(jPanel25);

        jPanel26.setName("jPanel26"); // NOI18N
        jPanel26.setLayout(new java.awt.GridLayout(1, 0));

        jLabelKTFullName.setFont(resourceMap.getFont("jLabelKTFullName.font")); // NOI18N
        jLabelKTFullName.setForeground(resourceMap.getColor("jLabelKTFullName.foreground")); // NOI18N
        jLabelKTFullName.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        jLabelKTFullName.setName("jLabelKTFullName"); // NOI18N
        jPanel26.add(jLabelKTFullName);

        jPanel10.add(jPanel26);

        jPanel27.setName("jPanel27"); // NOI18N
        jPanel27.setLayout(new java.awt.GridLayout(1, 0));

        jLabelKTPassWord.setFont(resourceMap.getFont("jLabelKTPassWord.font")); // NOI18N
        jLabelKTPassWord.setForeground(resourceMap.getColor("jLabelKTPassWord.foreground")); // NOI18N
        jLabelKTPassWord.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        jLabelKTPassWord.setText(resourceMap.getString("jLabelKTPassWord.text")); // NOI18N
        jLabelKTPassWord.setName("jLabelKTPassWord"); // NOI18N
        jPanel27.add(jLabelKTPassWord);

        jPanel10.add(jPanel27);

        jPanel28.setName("jPanel28"); // NOI18N
        jPanel28.setLayout(new java.awt.GridLayout(1, 0));

        jLabelKTEmail.setFont(resourceMap.getFont("jLabelKTEmail.font")); // NOI18N
        jLabelKTEmail.setForeground(resourceMap.getColor("jLabelKTEmail.foreground")); // NOI18N
        jLabelKTEmail.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        jLabelKTEmail.setText(resourceMap.getString("jLabelKTEmail.text")); // NOI18N
        jLabelKTEmail.setName("jLabelKTEmail"); // NOI18N
        jPanel28.add(jLabelKTEmail);

        jPanel10.add(jPanel28);

        jPanel29.setName("jPanel29"); // NOI18N

        javax.swing.GroupLayout jPanel29Layout = new javax.swing.GroupLayout(jPanel29);
        jPanel29.setLayout(jPanel29Layout);
        jPanel29Layout.setHorizontalGroup(
            jPanel29Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 100, Short.MAX_VALUE)
        );
        jPanel29Layout.setVerticalGroup(
            jPanel29Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 30, Short.MAX_VALUE)
        );

        jPanel10.add(jPanel29);

        jPanel30.setName("jPanel30"); // NOI18N

        javax.swing.GroupLayout jPanel30Layout = new javax.swing.GroupLayout(jPanel30);
        jPanel30.setLayout(jPanel30Layout);
        jPanel30Layout.setHorizontalGroup(
            jPanel30Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 100, Short.MAX_VALUE)
        );
        jPanel30Layout.setVerticalGroup(
            jPanel30Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 30, Short.MAX_VALUE)
        );

        jPanel10.add(jPanel30);

        jPanel9.add(jPanel10, java.awt.BorderLayout.LINE_END);

        jPanel11.setName("jPanel11"); // NOI18N
        jPanel11.setLayout(new java.awt.GridLayout(6, 0, 3, 3));

        jPanel12.setName("jPanel12"); // NOI18N

        javax.swing.GroupLayout jPanel12Layout = new javax.swing.GroupLayout(jPanel12);
        jPanel12.setLayout(jPanel12Layout);
        jPanel12Layout.setHorizontalGroup(
            jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 157, Short.MAX_VALUE)
        );
        jPanel12Layout.setVerticalGroup(
            jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 30, Short.MAX_VALUE)
        );

        jPanel11.add(jPanel12);

        jPanel13.setName("jPanel13"); // NOI18N
        jPanel13.setLayout(new java.awt.GridLayout(1, 0));

        jTextFieldFullName.setText(resourceMap.getString("jTextFieldFullName.text")); // NOI18N
        jTextFieldFullName.setName("jTextFieldFullName"); // NOI18N
        jTextFieldFullName.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusLost(java.awt.event.FocusEvent evt) {
                jTextFieldFullNameFocusLost(evt);
            }
        });
        jPanel13.add(jTextFieldFullName);

        jPanel11.add(jPanel13);

        jPanel15.setName("jPanel15"); // NOI18N
        jPanel15.setLayout(new java.awt.GridLayout(1, 0));

        jPasswordFieldPassWord.setText(resourceMap.getString("jPasswordFieldPassWord.text")); // NOI18N
        jPasswordFieldPassWord.setName("jPasswordFieldPassWord"); // NOI18N
        jPasswordFieldPassWord.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusLost(java.awt.event.FocusEvent evt) {
                jPasswordFieldPassWordFocusLost(evt);
            }
        });
        jPanel15.add(jPasswordFieldPassWord);

        jPanel11.add(jPanel15);

        jPanel16.setName("jPanel16"); // NOI18N
        jPanel16.setLayout(new java.awt.GridLayout(1, 0));

        jTextFieldEmail.setText(resourceMap.getString("jTextFieldEmail.text")); // NOI18N
        jTextFieldEmail.setName("jTextFieldEmail"); // NOI18N
        jTextFieldEmail.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusLost(java.awt.event.FocusEvent evt) {
                jTextFieldEmailFocusLost(evt);
            }
        });
        jPanel16.add(jTextFieldEmail);

        jPanel11.add(jPanel16);

        jPanel17.setName("jPanel17"); // NOI18N

        javax.swing.GroupLayout jPanel17Layout = new javax.swing.GroupLayout(jPanel17);
        jPanel17.setLayout(jPanel17Layout);
        jPanel17Layout.setHorizontalGroup(
            jPanel17Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 157, Short.MAX_VALUE)
        );
        jPanel17Layout.setVerticalGroup(
            jPanel17Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 30, Short.MAX_VALUE)
        );

        jPanel11.add(jPanel17);

        jPanel18.setName("jPanel18"); // NOI18N

        javax.swing.GroupLayout jPanel18Layout = new javax.swing.GroupLayout(jPanel18);
        jPanel18.setLayout(jPanel18Layout);
        jPanel18Layout.setHorizontalGroup(
            jPanel18Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 157, Short.MAX_VALUE)
        );
        jPanel18Layout.setVerticalGroup(
            jPanel18Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 30, Short.MAX_VALUE)
        );

        jPanel11.add(jPanel18);

        jPanel9.add(jPanel11, java.awt.BorderLayout.CENTER);

        jPanel7.add(jPanel9, java.awt.BorderLayout.CENTER);

        jPanel4.add(jPanel7, java.awt.BorderLayout.CENTER);

        jPanel3.add(jPanel4);

        jPanel5.setName("jPanel5"); // NOI18N
        jPanel5.setLayout(new java.awt.BorderLayout());

        jPanel31.setName("jPanel31"); // NOI18N
        jPanel31.setLayout(new java.awt.GridLayout(6, 0, 3, 3));

        jPanel68.setName("jPanel68"); // NOI18N

        javax.swing.GroupLayout jPanel68Layout = new javax.swing.GroupLayout(jPanel68);
        jPanel68.setLayout(jPanel68Layout);
        jPanel68Layout.setHorizontalGroup(
            jPanel68Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 100, Short.MAX_VALUE)
        );
        jPanel68Layout.setVerticalGroup(
            jPanel68Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 30, Short.MAX_VALUE)
        );

        jPanel31.add(jPanel68);

        jPanel102.setName("jPanel102"); // NOI18N
        jPanel102.setLayout(new java.awt.GridLayout(1, 0));

        jLabelUserName.setText(resourceMap.getString("jLabelUserName.text")); // NOI18N
        jLabelUserName.setName("jLabelUserName"); // NOI18N
        jPanel102.add(jLabelUserName);

        jPanel31.add(jPanel102);

        jPanel103.setName("jPanel103"); // NOI18N
        jPanel103.setLayout(new java.awt.GridLayout(1, 0));

        jLabelAddress.setText(resourceMap.getString("jLabelAddress.text")); // NOI18N
        jLabelAddress.setName("jLabelAddress"); // NOI18N
        jPanel103.add(jLabelAddress);

        jPanel31.add(jPanel103);

        jPanel104.setName("jPanel104"); // NOI18N
        jPanel104.setLayout(new java.awt.GridLayout(1, 0));

        jLabelPhone.setText(resourceMap.getString("jLabelPhone.text")); // NOI18N
        jLabelPhone.setName("jLabelPhone"); // NOI18N
        jPanel104.add(jLabelPhone);

        jPanel31.add(jPanel104);

        jPanel105.setName("jPanel105"); // NOI18N
        jPanel105.setLayout(new java.awt.GridLayout(1, 0));

        jLabelAuthority.setText(resourceMap.getString("jLabelAuthority.text")); // NOI18N
        jLabelAuthority.setName("jLabelAuthority"); // NOI18N
        jPanel105.add(jLabelAuthority);

        jPanel31.add(jPanel105);

        jPanel106.setName("jPanel106"); // NOI18N

        javax.swing.GroupLayout jPanel106Layout = new javax.swing.GroupLayout(jPanel106);
        jPanel106.setLayout(jPanel106Layout);
        jPanel106Layout.setHorizontalGroup(
            jPanel106Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 100, Short.MAX_VALUE)
        );
        jPanel106Layout.setVerticalGroup(
            jPanel106Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 30, Short.MAX_VALUE)
        );

        jPanel31.add(jPanel106);

        jPanel5.add(jPanel31, java.awt.BorderLayout.LINE_START);

        jPanel32.setName("jPanel32"); // NOI18N
        jPanel32.setLayout(new java.awt.BorderLayout());

        jPanel34.setName("jPanel34"); // NOI18N
        jPanel34.setLayout(new java.awt.BorderLayout());

        jPanel33.setName("jPanel33"); // NOI18N
        jPanel33.setLayout(new java.awt.GridLayout(6, 0, 3, 3));

        jPanel108.setName("jPanel108"); // NOI18N

        javax.swing.GroupLayout jPanel108Layout = new javax.swing.GroupLayout(jPanel108);
        jPanel108.setLayout(jPanel108Layout);
        jPanel108Layout.setHorizontalGroup(
            jPanel108Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 100, Short.MAX_VALUE)
        );
        jPanel108Layout.setVerticalGroup(
            jPanel108Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 30, Short.MAX_VALUE)
        );

        jPanel33.add(jPanel108);

        jPanel109.setName("jPanel109"); // NOI18N
        jPanel109.setLayout(new java.awt.GridLayout(1, 0));

        jButtonAdd.setIcon(resourceMap.getIcon("jButtonAdd.icon")); // NOI18N
        jButtonAdd.setText(resourceMap.getString("jButtonAdd.text")); // NOI18N
        jButtonAdd.setName("jButtonAdd"); // NOI18N
        jButtonAdd.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonAddActionPerformed(evt);
            }
        });
        jPanel109.add(jButtonAdd);

        jPanel33.add(jPanel109);

        jPanel110.setName("jPanel110"); // NOI18N
        jPanel110.setLayout(new java.awt.GridLayout(1, 0));

        jButtonEdit.setIcon(resourceMap.getIcon("jButtonEdit.icon")); // NOI18N
        jButtonEdit.setText(resourceMap.getString("jButtonEdit.text")); // NOI18N
        jButtonEdit.setName("jButtonEdit"); // NOI18N
        jButtonEdit.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonEditActionPerformed(evt);
            }
        });
        jPanel110.add(jButtonEdit);

        jPanel33.add(jPanel110);

        jPanel111.setName("jPanel111"); // NOI18N
        jPanel111.setLayout(new java.awt.GridLayout(1, 0));

        jButtonDelete.setIcon(resourceMap.getIcon("jButtonDelete.icon")); // NOI18N
        jButtonDelete.setText(resourceMap.getString("jButtonDelete.text")); // NOI18N
        jButtonDelete.setName("jButtonDelete"); // NOI18N
        jButtonDelete.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonDeleteActionPerformed(evt);
            }
        });
        jPanel111.add(jButtonDelete);

        jPanel33.add(jPanel111);

        jPanel112.setName("jPanel112"); // NOI18N
        jPanel112.setLayout(new java.awt.GridLayout(1, 0));

        jButtonRefresh.setIcon(resourceMap.getIcon("jButtonRefresh.icon")); // NOI18N
        jButtonRefresh.setText(resourceMap.getString("jButtonRefresh.text")); // NOI18N
        jButtonRefresh.setName("jButtonRefresh"); // NOI18N
        jButtonRefresh.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonRefreshActionPerformed(evt);
            }
        });
        jPanel112.add(jButtonRefresh);

        jPanel33.add(jPanel112);

        jPanel113.setName("jPanel113"); // NOI18N

        javax.swing.GroupLayout jPanel113Layout = new javax.swing.GroupLayout(jPanel113);
        jPanel113.setLayout(jPanel113Layout);
        jPanel113Layout.setHorizontalGroup(
            jPanel113Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 100, Short.MAX_VALUE)
        );
        jPanel113Layout.setVerticalGroup(
            jPanel113Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 30, Short.MAX_VALUE)
        );

        jPanel33.add(jPanel113);

        jPanel34.add(jPanel33, java.awt.BorderLayout.LINE_END);

        jPanel35.setName("jPanel35"); // NOI18N
        jPanel35.setLayout(new java.awt.BorderLayout());

        jPanel36.setName("jPanel36"); // NOI18N
        jPanel36.setLayout(new java.awt.GridLayout(6, 0, 3, 3));

        jPanel63.setName("jPanel63"); // NOI18N

        javax.swing.GroupLayout jPanel63Layout = new javax.swing.GroupLayout(jPanel63);
        jPanel63.setLayout(jPanel63Layout);
        jPanel63Layout.setHorizontalGroup(
            jPanel63Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 100, Short.MAX_VALUE)
        );
        jPanel63Layout.setVerticalGroup(
            jPanel63Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 30, Short.MAX_VALUE)
        );

        jPanel36.add(jPanel63);

        jPanel64.setName("jPanel64"); // NOI18N
        jPanel64.setLayout(new java.awt.GridLayout(1, 0));

        jLabelKTUserName.setFont(resourceMap.getFont("jLabelKTUserName.font")); // NOI18N
        jLabelKTUserName.setForeground(resourceMap.getColor("jLabelKTUserName.foreground")); // NOI18N
        jLabelKTUserName.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        jLabelKTUserName.setText(resourceMap.getString("jLabelKTUserName.text")); // NOI18N
        jLabelKTUserName.setName("jLabelKTUserName"); // NOI18N
        jPanel64.add(jLabelKTUserName);

        jPanel36.add(jPanel64);

        jPanel65.setName("jPanel65"); // NOI18N
        jPanel65.setLayout(new java.awt.GridLayout(1, 0));

        jLabelKTAddress.setFont(resourceMap.getFont("jLabelKTAddress.font")); // NOI18N
        jLabelKTAddress.setForeground(resourceMap.getColor("jLabelKTAddress.foreground")); // NOI18N
        jLabelKTAddress.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        jLabelKTAddress.setText(resourceMap.getString("jLabelKTAddress.text")); // NOI18N
        jLabelKTAddress.setName("jLabelKTAddress"); // NOI18N
        jPanel65.add(jLabelKTAddress);

        jPanel36.add(jPanel65);

        jPanel66.setName("jPanel66"); // NOI18N
        jPanel66.setLayout(new java.awt.GridLayout(1, 0));

        jLabelKTPhone.setFont(resourceMap.getFont("jLabelKTPhone.font")); // NOI18N
        jLabelKTPhone.setForeground(resourceMap.getColor("jLabelKTPhone.foreground")); // NOI18N
        jLabelKTPhone.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        jLabelKTPhone.setText(resourceMap.getString("jLabelKTPhone.text")); // NOI18N
        jLabelKTPhone.setName("jLabelKTPhone"); // NOI18N
        jPanel66.add(jLabelKTPhone);

        jPanel36.add(jPanel66);

        jPanel67.setName("jPanel67"); // NOI18N
        jPanel67.setLayout(new java.awt.GridLayout(1, 0));

        jLabelKTAuthority.setFont(resourceMap.getFont("jLabelKTAuthority.font")); // NOI18N
        jLabelKTAuthority.setForeground(resourceMap.getColor("jLabelKTAuthority.foreground")); // NOI18N
        jLabelKTAuthority.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        jLabelKTAuthority.setText(resourceMap.getString("jLabelKTAuthority.text")); // NOI18N
        jLabelKTAuthority.setName("jLabelKTAuthority"); // NOI18N
        jPanel67.add(jLabelKTAuthority);

        jPanel36.add(jPanel67);

        jPanel107.setName("jPanel107"); // NOI18N

        javax.swing.GroupLayout jPanel107Layout = new javax.swing.GroupLayout(jPanel107);
        jPanel107.setLayout(jPanel107Layout);
        jPanel107Layout.setHorizontalGroup(
            jPanel107Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 100, Short.MAX_VALUE)
        );
        jPanel107Layout.setVerticalGroup(
            jPanel107Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 30, Short.MAX_VALUE)
        );

        jPanel36.add(jPanel107);

        jPanel35.add(jPanel36, java.awt.BorderLayout.LINE_END);

        jPanel37.setName("jPanel37"); // NOI18N
        jPanel37.setLayout(new java.awt.GridLayout(6, 0, 3, 3));

        jPanel38.setName("jPanel38"); // NOI18N

        javax.swing.GroupLayout jPanel38Layout = new javax.swing.GroupLayout(jPanel38);
        jPanel38.setLayout(jPanel38Layout);
        jPanel38Layout.setHorizontalGroup(
            jPanel38Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 157, Short.MAX_VALUE)
        );
        jPanel38Layout.setVerticalGroup(
            jPanel38Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 30, Short.MAX_VALUE)
        );

        jPanel37.add(jPanel38);

        jPanel39.setName("jPanel39"); // NOI18N
        jPanel39.setLayout(new java.awt.GridLayout(1, 0));

        jTextFieldUserName.setEditable(false);
        jTextFieldUserName.setText(resourceMap.getString("jTextFieldUserName.text")); // NOI18N
        jTextFieldUserName.setName("jTextFieldUserName"); // NOI18N
        jTextFieldUserName.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusLost(java.awt.event.FocusEvent evt) {
                jTextFieldUserNameFocusLost(evt);
            }
        });
        jPanel39.add(jTextFieldUserName);

        jPanel37.add(jPanel39);

        jPanel40.setName("jPanel40"); // NOI18N
        jPanel40.setLayout(new java.awt.GridLayout(1, 0));

        jTextFieldAddress.setText(resourceMap.getString("jTextFieldAddress.text")); // NOI18N
        jTextFieldAddress.setName("jTextFieldAddress"); // NOI18N
        jTextFieldAddress.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusLost(java.awt.event.FocusEvent evt) {
                jTextFieldAddressFocusLost(evt);
            }
        });
        jPanel40.add(jTextFieldAddress);

        jPanel37.add(jPanel40);

        jPanel41.setName("jPanel41"); // NOI18N
        jPanel41.setLayout(new java.awt.GridLayout(1, 0));

        jTextFieldPhone.setText(resourceMap.getString("jTextFieldPhone.text")); // NOI18N
        jTextFieldPhone.setName("jTextFieldPhone"); // NOI18N
        jTextFieldPhone.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusLost(java.awt.event.FocusEvent evt) {
                jTextFieldPhoneFocusLost(evt);
            }
        });
        jPanel41.add(jTextFieldPhone);

        jPanel37.add(jPanel41);

        jPanel42.setName("jPanel42"); // NOI18N
        jPanel42.setLayout(new java.awt.GridLayout(1, 0));

        jComboBoxAuthority.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "--select--", "Admin", "User" }));
        jComboBoxAuthority.setName("jComboBoxAuthority"); // NOI18N
        jComboBoxAuthority.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusLost(java.awt.event.FocusEvent evt) {
                jComboBoxAuthorityFocusLost(evt);
            }
        });
        jPanel42.add(jComboBoxAuthority);

        jPanel37.add(jPanel42);

        jPanel62.setName("jPanel62"); // NOI18N

        javax.swing.GroupLayout jPanel62Layout = new javax.swing.GroupLayout(jPanel62);
        jPanel62.setLayout(jPanel62Layout);
        jPanel62Layout.setHorizontalGroup(
            jPanel62Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 157, Short.MAX_VALUE)
        );
        jPanel62Layout.setVerticalGroup(
            jPanel62Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 30, Short.MAX_VALUE)
        );

        jPanel37.add(jPanel62);

        jPanel35.add(jPanel37, java.awt.BorderLayout.CENTER);

        jPanel34.add(jPanel35, java.awt.BorderLayout.CENTER);

        jPanel32.add(jPanel34, java.awt.BorderLayout.CENTER);

        jPanel5.add(jPanel32, java.awt.BorderLayout.CENTER);

        jPanel3.add(jPanel5);

        jPanel1.add(jPanel3);

        jPanel43.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createLineBorder(resourceMap.getColor("jPanel43.border.border.lineColor"), 2), resourceMap.getString("jPanel43.border.title"), javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, resourceMap.getFont("jPanel43.border.titleFont"), resourceMap.getColor("jPanel43.border.titleColor"))); // NOI18N
        jPanel43.setName("jPanel43"); // NOI18N
        jPanel43.setLayout(new java.awt.BorderLayout());

        jPanel77.setName("jPanel77"); // NOI18N
        jPanel77.setPreferredSize(new java.awt.Dimension(937, 30));
        jPanel77.setLayout(new java.awt.BorderLayout());

        jPanel79.setName("jPanel79"); // NOI18N
        jPanel79.setPreferredSize(new java.awt.Dimension(250, 30));

        javax.swing.GroupLayout jPanel79Layout = new javax.swing.GroupLayout(jPanel79);
        jPanel79.setLayout(jPanel79Layout);
        jPanel79Layout.setHorizontalGroup(
            jPanel79Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 250, Short.MAX_VALUE)
        );
        jPanel79Layout.setVerticalGroup(
            jPanel79Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 30, Short.MAX_VALUE)
        );

        jPanel77.add(jPanel79, java.awt.BorderLayout.LINE_START);

        jPanel80.setName("jPanel80"); // NOI18N
        jPanel80.setPreferredSize(new java.awt.Dimension(250, 30));
        jPanel80.setLayout(new java.awt.BorderLayout());

        jPanel89.setName("jPanel89"); // NOI18N
        jPanel89.setPreferredSize(new java.awt.Dimension(50, 30));
        jPanel89.setLayout(new java.awt.BorderLayout());

        jLabel10.setForeground(resourceMap.getColor("jLabel10.foreground")); // NOI18N
        jLabel10.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        jLabel10.setText(resourceMap.getString("jLabel10.text")); // NOI18N
        jLabel10.setName("jLabel10"); // NOI18N
        jPanel89.add(jLabel10, java.awt.BorderLayout.CENTER);

        jPanel80.add(jPanel89, java.awt.BorderLayout.LINE_END);

        jPanel77.add(jPanel80, java.awt.BorderLayout.LINE_END);

        jPanel81.setName("jPanel81"); // NOI18N
        jPanel81.setLayout(new java.awt.BorderLayout());

        jPanel82.setName("jPanel82"); // NOI18N
        jPanel82.setPreferredSize(new java.awt.Dimension(109, 30));
        jPanel82.setLayout(new java.awt.BorderLayout());

        jButtonPrevious.setIcon(resourceMap.getIcon("jButtonPrevious.icon")); // NOI18N
        jButtonPrevious.setText(resourceMap.getString("jButtonPrevious.text")); // NOI18N
        jButtonPrevious.setName("jButtonPrevious"); // NOI18N
        jButtonPrevious.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonPreviousActionPerformed(evt);
            }
        });
        jPanel82.add(jButtonPrevious, java.awt.BorderLayout.CENTER);

        jPanel81.add(jPanel82, java.awt.BorderLayout.LINE_START);

        jPanel83.setName("jPanel83"); // NOI18N
        jPanel83.setLayout(new java.awt.BorderLayout());

        jPanel84.setName("jPanel84"); // NOI18N
        jPanel84.setPreferredSize(new java.awt.Dimension(109, 30));
        jPanel84.setLayout(new java.awt.BorderLayout());

        jButtonNext.setIcon(resourceMap.getIcon("jButtonNext.icon")); // NOI18N
        jButtonNext.setText(resourceMap.getString("jButtonNext.text")); // NOI18N
        jButtonNext.setName("jButtonNext"); // NOI18N
        jButtonNext.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonNextActionPerformed(evt);
            }
        });
        jPanel84.add(jButtonNext, java.awt.BorderLayout.CENTER);

        jPanel83.add(jPanel84, java.awt.BorderLayout.LINE_START);

        jPanel85.setName("jPanel85"); // NOI18N
        jPanel85.setLayout(new java.awt.BorderLayout());

        jPanel87.setName("jPanel87"); // NOI18N
        jPanel87.setLayout(new java.awt.BorderLayout());

        jPanel86.setName("jPanel86"); // NOI18N
        jPanel86.setPreferredSize(new java.awt.Dimension(110, 30));
        jPanel86.setLayout(new java.awt.BorderLayout());

        jTextFieldEnter.setText(resourceMap.getString("jTextFieldEnter.text")); // NOI18N
        jTextFieldEnter.setName("jTextFieldEnter"); // NOI18N
        jPanel86.add(jTextFieldEnter, java.awt.BorderLayout.CENTER);

        jPanel87.add(jPanel86, java.awt.BorderLayout.LINE_START);

        jPanel88.setName("jPanel88"); // NOI18N
        jPanel88.setLayout(new java.awt.BorderLayout());

        jButtonEnter.setIcon(resourceMap.getIcon("jButtonEnter.icon")); // NOI18N
        jButtonEnter.setText(resourceMap.getString("jButtonEnter.text")); // NOI18N
        jButtonEnter.setName("jButtonEnter"); // NOI18N
        jButtonEnter.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonEnterActionPerformed(evt);
            }
        });
        jPanel88.add(jButtonEnter, java.awt.BorderLayout.CENTER);

        jPanel87.add(jPanel88, java.awt.BorderLayout.CENTER);

        jPanel85.add(jPanel87, java.awt.BorderLayout.CENTER);

        jPanel83.add(jPanel85, java.awt.BorderLayout.CENTER);

        jPanel81.add(jPanel83, java.awt.BorderLayout.CENTER);

        jPanel77.add(jPanel81, java.awt.BorderLayout.CENTER);

        jPanel43.add(jPanel77, java.awt.BorderLayout.PAGE_END);

        jPanel78.setName("jPanel78"); // NOI18N
        jPanel78.setLayout(new java.awt.BorderLayout());

        jScrollPane1.setName("jScrollPane1"); // NOI18N

        jTableadministrative.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {},
                {},
                {},
                {}
            },
            new String [] {

            }
        ));
        jTableadministrative.setName("jTableadministrative"); // NOI18N
        jTableadministrative.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jTableadministrativeMouseClicked(evt);
            }
        });
        jTableadministrative.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyReleased(java.awt.event.KeyEvent evt) {
                jTableadministrativeKeyReleased(evt);
            }
        });
        jScrollPane1.setViewportView(jTableadministrative);

        jPanel78.add(jScrollPane1, java.awt.BorderLayout.CENTER);

        jPanel43.add(jPanel78, java.awt.BorderLayout.CENTER);

        jPanel1.add(jPanel43);

        jTabbedPane1.addTab(resourceMap.getString("jPanel1.TabConstraints.tabTitle"), jPanel1); // NOI18N

        jPanel2.setName("jPanel2"); // NOI18N
        jPanel2.setLayout(new java.awt.BorderLayout());

        jPanel44.setBorder(javax.swing.BorderFactory.createTitledBorder(null, resourceMap.getString("jPanel44.border.title"), javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, resourceMap.getFont("jPanel44.border.titleFont"), resourceMap.getColor("jPanel44.border.titleColor"))); // NOI18N
        jPanel44.setName("jPanel44"); // NOI18N
        jPanel44.setPreferredSize(new java.awt.Dimension(935, 250));
        jPanel44.setLayout(new java.awt.BorderLayout());

        jPanel45.setName("jPanel45"); // NOI18N
        jPanel45.setPreferredSize(new java.awt.Dimension(200, 182));

        javax.swing.GroupLayout jPanel45Layout = new javax.swing.GroupLayout(jPanel45);
        jPanel45.setLayout(jPanel45Layout);
        jPanel45Layout.setHorizontalGroup(
            jPanel45Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 200, Short.MAX_VALUE)
        );
        jPanel45Layout.setVerticalGroup(
            jPanel45Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 220, Short.MAX_VALUE)
        );

        jPanel44.add(jPanel45, java.awt.BorderLayout.LINE_START);

        jPanel46.setName("jPanel46"); // NOI18N
        jPanel46.setPreferredSize(new java.awt.Dimension(200, 182));

        javax.swing.GroupLayout jPanel46Layout = new javax.swing.GroupLayout(jPanel46);
        jPanel46.setLayout(jPanel46Layout);
        jPanel46Layout.setHorizontalGroup(
            jPanel46Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 200, Short.MAX_VALUE)
        );
        jPanel46Layout.setVerticalGroup(
            jPanel46Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 220, Short.MAX_VALUE)
        );

        jPanel44.add(jPanel46, java.awt.BorderLayout.LINE_END);

        jPanel47.setName("jPanel47"); // NOI18N
        jPanel47.setLayout(new java.awt.BorderLayout());

        jLabel7.setFont(resourceMap.getFont("jLabel7.font")); // NOI18N
        jLabel7.setForeground(resourceMap.getColor("jLabel7.foreground")); // NOI18N
        jLabel7.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        jLabel7.setText(resourceMap.getString("jLabel7.text")); // NOI18N
        jLabel7.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        jLabel7.setName("jLabel7"); // NOI18N
        jPanel47.add(jLabel7, java.awt.BorderLayout.PAGE_START);

        jPanel49.setName("jPanel49"); // NOI18N

        javax.swing.GroupLayout jPanel49Layout = new javax.swing.GroupLayout(jPanel49);
        jPanel49.setLayout(jPanel49Layout);
        jPanel49Layout.setHorizontalGroup(
            jPanel49Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 100, Short.MAX_VALUE)
        );
        jPanel49Layout.setVerticalGroup(
            jPanel49Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 203, Short.MAX_VALUE)
        );

        jPanel47.add(jPanel49, java.awt.BorderLayout.LINE_START);

        jPanel50.setName("jPanel50"); // NOI18N
        jPanel50.setLayout(new java.awt.GridLayout(6, 0, 3, 3));

        jPanel114.setName("jPanel114"); // NOI18N

        javax.swing.GroupLayout jPanel114Layout = new javax.swing.GroupLayout(jPanel114);
        jPanel114.setLayout(jPanel114Layout);
        jPanel114Layout.setHorizontalGroup(
            jPanel114Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 100, Short.MAX_VALUE)
        );
        jPanel114Layout.setVerticalGroup(
            jPanel114Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 31, Short.MAX_VALUE)
        );

        jPanel50.add(jPanel114);

        jPanel115.setName("jPanel115"); // NOI18N

        javax.swing.GroupLayout jPanel115Layout = new javax.swing.GroupLayout(jPanel115);
        jPanel115.setLayout(jPanel115Layout);
        jPanel115Layout.setHorizontalGroup(
            jPanel115Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 100, Short.MAX_VALUE)
        );
        jPanel115Layout.setVerticalGroup(
            jPanel115Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 31, Short.MAX_VALUE)
        );

        jPanel50.add(jPanel115);

        jPanel116.setName("jPanel116"); // NOI18N
        jPanel116.setLayout(new java.awt.GridLayout(1, 0));

        jLabelKTSearchAccountNamee.setFont(resourceMap.getFont("jLabelKTSearchAccountNamee.font")); // NOI18N
        jLabelKTSearchAccountNamee.setForeground(resourceMap.getColor("jLabelKTSearchAccountNamee.foreground")); // NOI18N
        jLabelKTSearchAccountNamee.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        jLabelKTSearchAccountNamee.setName("jLabelKTSearchAccountNamee"); // NOI18N
        jPanel116.add(jLabelKTSearchAccountNamee);

        jPanel50.add(jPanel116);

        jPanel117.setName("jPanel117"); // NOI18N

        javax.swing.GroupLayout jPanel117Layout = new javax.swing.GroupLayout(jPanel117);
        jPanel117.setLayout(jPanel117Layout);
        jPanel117Layout.setHorizontalGroup(
            jPanel117Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 100, Short.MAX_VALUE)
        );
        jPanel117Layout.setVerticalGroup(
            jPanel117Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 31, Short.MAX_VALUE)
        );

        jPanel50.add(jPanel117);

        jPanel118.setName("jPanel118"); // NOI18N

        javax.swing.GroupLayout jPanel118Layout = new javax.swing.GroupLayout(jPanel118);
        jPanel118.setLayout(jPanel118Layout);
        jPanel118Layout.setHorizontalGroup(
            jPanel118Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 100, Short.MAX_VALUE)
        );
        jPanel118Layout.setVerticalGroup(
            jPanel118Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 31, Short.MAX_VALUE)
        );

        jPanel50.add(jPanel118);

        jPanel119.setName("jPanel119"); // NOI18N

        javax.swing.GroupLayout jPanel119Layout = new javax.swing.GroupLayout(jPanel119);
        jPanel119.setLayout(jPanel119Layout);
        jPanel119Layout.setHorizontalGroup(
            jPanel119Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 100, Short.MAX_VALUE)
        );
        jPanel119Layout.setVerticalGroup(
            jPanel119Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 31, Short.MAX_VALUE)
        );

        jPanel50.add(jPanel119);

        jPanel47.add(jPanel50, java.awt.BorderLayout.LINE_END);

        jPanel51.setName("jPanel51"); // NOI18N
        jPanel51.setLayout(new java.awt.BorderLayout());

        jPanel52.setName("jPanel52"); // NOI18N
        jPanel52.setPreferredSize(new java.awt.Dimension(80, 165));
        jPanel52.setLayout(new java.awt.GridLayout(6, 1, 4, 4));

        jPanel54.setName("jPanel54"); // NOI18N

        javax.swing.GroupLayout jPanel54Layout = new javax.swing.GroupLayout(jPanel54);
        jPanel54.setLayout(jPanel54Layout);
        jPanel54Layout.setHorizontalGroup(
            jPanel54Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 80, Short.MAX_VALUE)
        );
        jPanel54Layout.setVerticalGroup(
            jPanel54Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 30, Short.MAX_VALUE)
        );

        jPanel52.add(jPanel54);

        jPanel55.setName("jPanel55"); // NOI18N

        javax.swing.GroupLayout jPanel55Layout = new javax.swing.GroupLayout(jPanel55);
        jPanel55.setLayout(jPanel55Layout);
        jPanel55Layout.setHorizontalGroup(
            jPanel55Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 80, Short.MAX_VALUE)
        );
        jPanel55Layout.setVerticalGroup(
            jPanel55Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 30, Short.MAX_VALUE)
        );

        jPanel52.add(jPanel55);

        jPanel56.setName("jPanel56"); // NOI18N
        jPanel56.setLayout(new java.awt.BorderLayout());

        jLabelAccountName.setText(resourceMap.getString("jLabelAccountName.text")); // NOI18N
        jLabelAccountName.setName("jLabelAccountName"); // NOI18N
        jPanel56.add(jLabelAccountName, java.awt.BorderLayout.CENTER);

        jPanel52.add(jPanel56);

        jPanel57.setName("jPanel57"); // NOI18N

        javax.swing.GroupLayout jPanel57Layout = new javax.swing.GroupLayout(jPanel57);
        jPanel57.setLayout(jPanel57Layout);
        jPanel57Layout.setHorizontalGroup(
            jPanel57Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 80, Short.MAX_VALUE)
        );
        jPanel57Layout.setVerticalGroup(
            jPanel57Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 30, Short.MAX_VALUE)
        );

        jPanel52.add(jPanel57);

        jPanel58.setName("jPanel58"); // NOI18N

        javax.swing.GroupLayout jPanel58Layout = new javax.swing.GroupLayout(jPanel58);
        jPanel58.setLayout(jPanel58Layout);
        jPanel58Layout.setHorizontalGroup(
            jPanel58Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 80, Short.MAX_VALUE)
        );
        jPanel58Layout.setVerticalGroup(
            jPanel58Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 30, Short.MAX_VALUE)
        );

        jPanel52.add(jPanel58);

        jPanel59.setName("jPanel59"); // NOI18N

        javax.swing.GroupLayout jPanel59Layout = new javax.swing.GroupLayout(jPanel59);
        jPanel59.setLayout(jPanel59Layout);
        jPanel59Layout.setHorizontalGroup(
            jPanel59Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 80, Short.MAX_VALUE)
        );
        jPanel59Layout.setVerticalGroup(
            jPanel59Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 30, Short.MAX_VALUE)
        );

        jPanel52.add(jPanel59);

        jPanel51.add(jPanel52, java.awt.BorderLayout.LINE_START);

        jPanel53.setName("jPanel53"); // NOI18N
        jPanel53.setLayout(new java.awt.GridLayout(6, 1, 4, 4));

        jPanel60.setName("jPanel60"); // NOI18N

        javax.swing.GroupLayout jPanel60Layout = new javax.swing.GroupLayout(jPanel60);
        jPanel60.setLayout(jPanel60Layout);
        jPanel60Layout.setHorizontalGroup(
            jPanel60Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 243, Short.MAX_VALUE)
        );
        jPanel60Layout.setVerticalGroup(
            jPanel60Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 30, Short.MAX_VALUE)
        );

        jPanel53.add(jPanel60);

        jPanel69.setName("jPanel69"); // NOI18N

        javax.swing.GroupLayout jPanel69Layout = new javax.swing.GroupLayout(jPanel69);
        jPanel69.setLayout(jPanel69Layout);
        jPanel69Layout.setHorizontalGroup(
            jPanel69Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 243, Short.MAX_VALUE)
        );
        jPanel69Layout.setVerticalGroup(
            jPanel69Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 30, Short.MAX_VALUE)
        );

        jPanel53.add(jPanel69);

        jPanel70.setName("jPanel70"); // NOI18N
        jPanel70.setLayout(new java.awt.BorderLayout());

        jTextFieldAccountName.setText(resourceMap.getString("jTextFieldAccountName.text")); // NOI18N
        jTextFieldAccountName.setName("jTextFieldAccountName"); // NOI18N
        jPanel70.add(jTextFieldAccountName, java.awt.BorderLayout.CENTER);

        jPanel53.add(jPanel70);

        jPanel71.setName("jPanel71"); // NOI18N
        jPanel71.setLayout(new java.awt.BorderLayout());

        jPanel74.setName("jPanel74"); // NOI18N

        javax.swing.GroupLayout jPanel74Layout = new javax.swing.GroupLayout(jPanel74);
        jPanel74.setLayout(jPanel74Layout);
        jPanel74Layout.setHorizontalGroup(
            jPanel74Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 100, Short.MAX_VALUE)
        );
        jPanel74Layout.setVerticalGroup(
            jPanel74Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 30, Short.MAX_VALUE)
        );

        jPanel71.add(jPanel74, java.awt.BorderLayout.LINE_START);

        jPanel75.setName("jPanel75"); // NOI18N
        jPanel75.setLayout(new java.awt.BorderLayout());

        jPanel76.setName("jPanel76"); // NOI18N
        jPanel76.setLayout(new java.awt.BorderLayout());

        jButtonSearch.setIcon(resourceMap.getIcon("jButtonSearch.icon")); // NOI18N
        jButtonSearch.setText(resourceMap.getString("jButtonSearch.text")); // NOI18N
        jButtonSearch.setName("jButtonSearch"); // NOI18N
        jButtonSearch.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonSearchActionPerformed(evt);
            }
        });
        jPanel76.add(jButtonSearch, java.awt.BorderLayout.CENTER);

        jPanel75.add(jPanel76, java.awt.BorderLayout.LINE_START);

        jPanel71.add(jPanel75, java.awt.BorderLayout.CENTER);

        jPanel53.add(jPanel71);

        jPanel72.setName("jPanel72"); // NOI18N

        javax.swing.GroupLayout jPanel72Layout = new javax.swing.GroupLayout(jPanel72);
        jPanel72.setLayout(jPanel72Layout);
        jPanel72Layout.setHorizontalGroup(
            jPanel72Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 243, Short.MAX_VALUE)
        );
        jPanel72Layout.setVerticalGroup(
            jPanel72Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 30, Short.MAX_VALUE)
        );

        jPanel53.add(jPanel72);

        jPanel73.setName("jPanel73"); // NOI18N

        javax.swing.GroupLayout jPanel73Layout = new javax.swing.GroupLayout(jPanel73);
        jPanel73.setLayout(jPanel73Layout);
        jPanel73Layout.setHorizontalGroup(
            jPanel73Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 243, Short.MAX_VALUE)
        );
        jPanel73Layout.setVerticalGroup(
            jPanel73Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 30, Short.MAX_VALUE)
        );

        jPanel53.add(jPanel73);

        jPanel51.add(jPanel53, java.awt.BorderLayout.CENTER);

        jPanel47.add(jPanel51, java.awt.BorderLayout.CENTER);

        jPanel44.add(jPanel47, java.awt.BorderLayout.CENTER);

        jPanel2.add(jPanel44, java.awt.BorderLayout.PAGE_START);

        jPanel61.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createLineBorder(resourceMap.getColor("jPanel61.border.border.lineColor"), 2), resourceMap.getString("jPanel61.border.title"), javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, resourceMap.getFont("jPanel61.border.titleFont"), resourceMap.getColor("jPanel61.border.titleColor"))); // NOI18N
        jPanel61.setName("jPanel61"); // NOI18N
        jPanel61.setPreferredSize(new java.awt.Dimension(949, 700));
        jPanel61.setLayout(new java.awt.BorderLayout());

        jPanel90.setName("jPanel90"); // NOI18N
        jPanel90.setPreferredSize(new java.awt.Dimension(937, 30));
        jPanel90.setLayout(new java.awt.BorderLayout());

        jPanel92.setName("jPanel92"); // NOI18N
        jPanel92.setPreferredSize(new java.awt.Dimension(250, 30));
        jPanel92.setLayout(new java.awt.BorderLayout());

        jPanel101.setName("jPanel101"); // NOI18N
        jPanel101.setPreferredSize(new java.awt.Dimension(50, 30));
        jPanel101.setLayout(new java.awt.BorderLayout());

        jLabelvalues2.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        jLabelvalues2.setName("jLabelvalues2"); // NOI18N
        jPanel101.add(jLabelvalues2, java.awt.BorderLayout.CENTER);

        jPanel92.add(jPanel101, java.awt.BorderLayout.LINE_END);

        jPanel90.add(jPanel92, java.awt.BorderLayout.LINE_END);

        jPanel93.setName("jPanel93"); // NOI18N
        jPanel93.setPreferredSize(new java.awt.Dimension(250, 30));

        javax.swing.GroupLayout jPanel93Layout = new javax.swing.GroupLayout(jPanel93);
        jPanel93.setLayout(jPanel93Layout);
        jPanel93Layout.setHorizontalGroup(
            jPanel93Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 250, Short.MAX_VALUE)
        );
        jPanel93Layout.setVerticalGroup(
            jPanel93Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 30, Short.MAX_VALUE)
        );

        jPanel90.add(jPanel93, java.awt.BorderLayout.LINE_START);

        jPanel94.setName("jPanel94"); // NOI18N
        jPanel94.setLayout(new java.awt.BorderLayout());

        jPanel95.setName("jPanel95"); // NOI18N
        jPanel95.setPreferredSize(new java.awt.Dimension(109, 30));
        jPanel95.setLayout(new java.awt.BorderLayout());

        jButtonNextSearch.setIcon(resourceMap.getIcon("jButtonNextSearch.icon")); // NOI18N
        jButtonNextSearch.setText(resourceMap.getString("jButtonNextSearch.text")); // NOI18N
        jButtonNextSearch.setName("jButtonNextSearch"); // NOI18N
        jPanel95.add(jButtonNextSearch, java.awt.BorderLayout.CENTER);

        jPanel94.add(jPanel95, java.awt.BorderLayout.LINE_START);

        jPanel96.setName("jPanel96"); // NOI18N
        jPanel96.setLayout(new java.awt.BorderLayout());

        jPanel97.setName("jPanel97"); // NOI18N
        jPanel97.setPreferredSize(new java.awt.Dimension(109, 30));
        jPanel97.setLayout(new java.awt.BorderLayout());

        jButtonPreviousSearch.setIcon(resourceMap.getIcon("jButtonPreviousSearch.icon")); // NOI18N
        jButtonPreviousSearch.setText(resourceMap.getString("jButtonPreviousSearch.text")); // NOI18N
        jButtonPreviousSearch.setName("jButtonPreviousSearch"); // NOI18N
        jPanel97.add(jButtonPreviousSearch, java.awt.BorderLayout.CENTER);

        jPanel96.add(jPanel97, java.awt.BorderLayout.LINE_START);

        jPanel98.setName("jPanel98"); // NOI18N
        jPanel98.setLayout(new java.awt.BorderLayout());

        jPanel99.setName("jPanel99"); // NOI18N
        jPanel99.setPreferredSize(new java.awt.Dimension(110, 30));
        jPanel99.setLayout(new java.awt.BorderLayout());

        jTextField13.setText(resourceMap.getString("jTextField13.text")); // NOI18N
        jTextField13.setName("jTextField13"); // NOI18N
        jPanel99.add(jTextField13, java.awt.BorderLayout.CENTER);

        jPanel98.add(jPanel99, java.awt.BorderLayout.LINE_START);

        jPanel100.setName("jPanel100"); // NOI18N
        jPanel100.setLayout(new java.awt.BorderLayout());

        jButtonEnterSearch.setIcon(resourceMap.getIcon("jButtonEnterSearch.icon")); // NOI18N
        jButtonEnterSearch.setText(resourceMap.getString("jButtonEnterSearch.text")); // NOI18N
        jButtonEnterSearch.setName("jButtonEnterSearch"); // NOI18N
        jPanel100.add(jButtonEnterSearch, java.awt.BorderLayout.CENTER);

        jPanel98.add(jPanel100, java.awt.BorderLayout.CENTER);

        jPanel96.add(jPanel98, java.awt.BorderLayout.CENTER);

        jPanel94.add(jPanel96, java.awt.BorderLayout.CENTER);

        jPanel90.add(jPanel94, java.awt.BorderLayout.CENTER);

        jPanel61.add(jPanel90, java.awt.BorderLayout.PAGE_END);

        jPanel91.setName("jPanel91"); // NOI18N
        jPanel91.setLayout(new java.awt.BorderLayout());

        jScrollPane2.setName("jScrollPane2"); // NOI18N

        jTableSearch.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {},
                {},
                {},
                {}
            },
            new String [] {

            }
        ));
        jTableSearch.setName("jTableSearch"); // NOI18N
        jTableSearch.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jTableSearchMouseClicked(evt);
            }
        });
        jTableSearch.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyPressed(java.awt.event.KeyEvent evt) {
                jTableSearchKeyPressed(evt);
            }
        });
        jScrollPane2.setViewportView(jTableSearch);

        jPanel91.add(jScrollPane2, java.awt.BorderLayout.CENTER);

        jPanel61.add(jPanel91, java.awt.BorderLayout.CENTER);

        jPanel2.add(jPanel61, java.awt.BorderLayout.CENTER);

        jTabbedPane1.addTab(resourceMap.getString("jPanel2.TabConstraints.tabTitle"), jPanel2); // NOI18N

        getContentPane().add(jTabbedPane1, java.awt.BorderLayout.CENTER);

        pack();
    }// </editor-fold>//GEN-END:initComponents

    public void Showlist(int a , int b)
    {
       vvo = new Vector<Vector<Object>>(Administative.AdministativePT().subList(a, b));
        Vector<Object> cols=new Vector<Object>();
        cols.add("AccountId");
        cols.add("UserName");
       // cols.add("PassWord");
        cols.add("AccountName");
        cols.add("Address");
        cols.add("Email");
        cols.add("Phone");
        cols.add("Authority");
        
        DefaultTableModel dmt=new DefaultTableModel(vvo,cols){

            @Override
            public boolean isCellEditable(int row, int column) {
                return false;
            }
            
        };
        this.jTableadministrative.setModel(dmt);
        this.jTableadministrative.getTableHeader().setReorderingAllowed(false);
        
        
    }
    public void SearchList1(String str)
    {
        //Vector<Vector<Object>> vvo = new Vector<Vector<Object>>(Administative.AdministativePT1(str).subList(a, b));
        Vector<Object> cols=new Vector<Object>();
        cols.add("AccountId");
        cols.add("UserName");
        //cols.add("PassWord");
        cols.add("AccountName");
        cols.add("Address");
        cols.add("Email");
        cols.add("Phone");
        cols.add("Authority");
        
        DefaultTableModel dmn=new DefaultTableModel(Administative.SearchAdministative(str),cols){

            @Override
            public boolean isCellEditable(int row, int column) {
                return false;
            }
            
        }; 
        this.jTableSearch.setModel(dmn);
         this.jTableSearch.getTableHeader().setReorderingAllowed(false);
        
    }
    private void click()
    {
        String ID=this.jTableadministrative.getValueAt(this.jTableadministrative.getSelectedRow(),0).toString();
        Administative ad=new Administative();
        ad=ad.Infomation_Adminstative(ID);
        this.jTextFieldFullName.setText(ad.getAccountName());
        this.jTextFieldUserName.setText(ad.getUserName());
        this.jPasswordFieldPassWord.setText(ad.getPassWord());
        this.jTextFieldAddress.setText(ad.getAddress());
        this.jTextFieldEmail.setText(ad.getEmail());
        this.jTextFieldPhone.setText(ad.getPhone());
        String cb="--select--";
        if(ad.getAuthority().toLowerCase().equals("1"))
            cb="Admin";
        if(ad.getAuthority().toLowerCase().equals("2"))
            cb="User";
        this.jComboBoxAuthority.setSelectedItem(cb);
    }
    private void click1()
    {
        String user=this.jTableSearch.getValueAt(this.jTableSearch.getSelectedRow(),0).toString();
        Administative ad1=new Administative();
        ad1=ad1.Infomation_Adminstative(user);
        this.jTextFieldAccountName.setText(ad1.getUserName());
    }
    private void jButtonNextActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonNextActionPerformed
      
        count++;
         jButtonPrevious.setEnabled(true);
        if(count>Administative.Count()/5)
        {
            int d=(count-1)*5;
            Showlist(d, Administative.Count());
            jButtonNext.setEnabled(false);
        }
        else
        {
            
            int b= (count*5)-5;
        jLabel10.setText(String.valueOf(count));
       
        Showlist(b, count*5);
        }
       
        
        
    }//GEN-LAST:event_jButtonNextActionPerformed
private void Edit_ad()
{
   
    
         if(jTextFieldFullName.getText().equals(""))
            {
                this.jLabelKTFullName.setText("Not Null");
                jTextFieldFullName.requestFocus();
                return;
            }
            if(jTextFieldUserName.getText().equals(""))
            {
                this.jLabelKTUserName.setText("Not Null");
                jTextFieldUserName.requestFocus();
                return;
            }
            if(jTextFieldUserName.getText().trim().length()<4)
            {
                this.jLabelKTUserName.setText("UserName >= 4");
                jTextFieldUserName.requestFocus();
                return;
            }
            if(jTextFieldUserName.getText().trim().length()>16)
            {
                this.jLabelKTUserName.setText("UserName<=16");
                jTextFieldUserName.requestFocus();
                return;
            }
            if(jPasswordFieldPassWord.getText().equals(""))
            {
                this.jLabelKTPassWord.setText("Not Null");
                jPasswordFieldPassWord.requestFocus();
                return;
            }
            if(jPasswordFieldPassWord.getText().trim().length()<4)
            {
                this.jLabelKTPassWord.setText("PassWord>=4");
                jPasswordFieldPassWord.requestFocus();
                return;
            }
            if(jPasswordFieldPassWord.getText().trim().length()>50)
            {
                this.jLabelKTPassWord.setText("PassWord<=50");
                jPasswordFieldPassWord.requestFocus();
                return;
            }
            if(jTextFieldAddress.getText().equals(""))
            {
                this.jLabelKTAddress.setText("Not Null");
                jTextFieldAddress.requestFocus();
                return;
            }
             if(jTextFieldEmail.getText().equals(""))
            {
                this.jLabelKTEmail.setText("Not Null");
                jTextFieldEmail.requestFocus();
                return;
            }
            if(!Check.isValidEmail(jTextFieldEmail.getText()))
            {
                this.jLabelKTEmail.setText("Email Invalid");
                jTextFieldEmail.requestFocus();
                return;
            }
            if(jTextFieldPhone.getText().equals(""))
            {
                this.jLabelKTPhone.setText("Not Null");
                jTextFieldPhone.requestFocus();
                return;
            }
            if(jTextFieldPhone.getText().trim().length()>50)
            {
                this.jLabelKTPhone.setText("Phone<=50");
                jTextFieldPhone.requestFocus();
                return;
            }
           if(jComboBoxAuthority.getSelectedItem().equals("--select--"))
           {
               this.jLabelKTAuthority.setText("Chose");
               jComboBoxAuthority.requestFocus();
               return;
           }
       
             Administative ad=new Administative();
            ad.setAccountName(jTextFieldFullName.getText());
            ad.setUserName(jTextFieldUserName.getText());
            ad.setPassWord(jPasswordFieldPassWord.getPassword().toString());
            ad.setAddress(jTextFieldAddress.getText());
            ad.setEmail(jTextFieldEmail.getText());
            ad.setPhone(jTextFieldPhone.getText());
            ad.setAuthority(String.valueOf(jComboBoxAuthority.getSelectedIndex()));
            ad.setAcountId(String.valueOf(jLabel10.getText()));
            
          if(ad.Edit_Administative(Integer.valueOf(jLabel10.getText())))
          {
              kt=false;
              this.jLabelKTFullName.setText("");
              this.jLabelKTUserName.setText("");
              this.jLabelKTPassWord.setText("");
              this.jLabelKTAddress.setText("");
              this.jLabelKTEmail.setText("");
              this.jLabelKTPhone.setText("");
              this.jLabelKTAuthority.setText("");
             // JOptionPane.showMessageDialog(null, "Edit success");
              if(count>Administative.Count()/5)
                        {
                            int d=(count-1)*5;
                            Showlist(d, Administative.Count());
                            jButtonNext.setEnabled(false);
                        }
                        else
                        {

                            int b= (count*5)-5;
                        jLabel10.setText(String.valueOf(count));

                        Showlist(b, count*5);
                        }
               try {
                    ImageIcon iic = new ImageIcon(f.getCanonicalPath()+"\\src\\callcenter\\resources\\Images\\edit_male_user_icon.png");
                    JOptionPane.showMessageDialog(null, "Edit success", "Notice", 0, iic);
                } catch (Exception e) {
                }
          }
        else
        {
            try {
                    ImageIcon iic = new ImageIcon(f.getCanonicalPath()+"\\src\\callcenter\\resources\\Images\\edit_male_user_icon.png");
                    JOptionPane.showMessageDialog(null, "Edit failure", "Notice", 0, iic);
                } catch (Exception e) {
                }
        }

   
       
    
}
    private void jButtonPreviousActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonPreviousActionPerformed
       
                count--;
                int b=(count*5)-5;
                
jLabel10.setText(String.valueOf(count));
jButtonNext.setEnabled(true);
Showlist(b, count*5);
if(count==1)
{
    jButtonPrevious.setEnabled(false);
}
        
        
    }//GEN-LAST:event_jButtonPreviousActionPerformed

    private void jButtonEnterActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonEnterActionPerformed
      // Showlist(Integer.valueOf(jTextField12.getText()));
      if(!Check.isNumber(jTextFieldEnter.getText()))
      {
           try {
                    ImageIcon iic = new ImageIcon(f.getCanonicalPath()+"\\src\\callcenter\\resources\\Images\\edit_male_user_icon.png");
                    JOptionPane.showMessageDialog(null, "Invalid", "Notice", 0, iic);
                } catch (Exception e) {
                }
           jTextFieldEnter.requestFocus();
           return;
      }
        count= Integer.valueOf(jTextFieldEnter.getText());
        jButtonPrevious.setEnabled(true);
        if(count>Administative.Count()/5)
        {
            int d=(count-1)*5;
            Showlist(d, Administative.Count());
            jButtonNext.setEnabled(false);
        }
        else
        {
            
            int b= (count*5)-5;
        jLabel10.setText(String.valueOf(count));
       
        Showlist(b, count*5);
        }
    }//GEN-LAST:event_jButtonEnterActionPerformed

    private void jButtonSearchActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonSearchActionPerformed
       
        if(jTextFieldAccountName.getText().equals(""))
        {
            this.jLabelKTSearchAccountNamee.setText("Not Null");
            jTextFieldAccountName.requestFocus();
            return;
        }
        else
        {
            this.jLabelKTSearchAccountNamee.setText("");
          //SearchList(jTextFieldAccountName.getText(), 0, 5);
            SearchList1(jTextFieldAccountName.getText());
        }
    }//GEN-LAST:event_jButtonSearchActionPerformed

    
    
    
    private void jButtonAddActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonAddActionPerformed

        
             Administative ad=new Administative();
            
        ad.setAccountName(jTextFieldFullName.getText());
        ad.setUserName(jTextFieldUserName.getText());
        ad.setPassWord(jPasswordFieldPassWord.getText());
        ad.setAddress(jTextFieldAddress.getText());
        ad.setPhone(jTextFieldPhone.getText());
        ad.setEmail(jTextFieldEmail.getText());
        ad.setAuthority(String.valueOf(jComboBoxAuthority.getSelectedIndex()));
         if(jTextFieldFullName.getText().equals(""))
            {
                this.jLabelKTFullName.setText("Not Null");
                jTextFieldFullName.requestFocus();
                return;
            }
         if(jTextFieldFullName.getText().trim().length()>50)
         {
              try {
                    ImageIcon iic = new ImageIcon(f.getCanonicalPath()+"\\src\\callcenter\\resources\\Images\\administrator_business_man_consultancy_man_user_icon.png");
                    JOptionPane.showMessageDialog(null, "Name  must not exceed 50 characters", "Notice", 0, iic);
                } catch (Exception e) {
                    System.out.println("loi o day:"+e);
                }
              jTextFieldFullName.requestFocus();
              return;
         }
            if(jTextFieldUserName.getText().equals(""))
            {
                this.jLabelKTUserName.setText("Not Null");
                jTextFieldUserName.requestFocus();
                return;
            }
            if(jTextFieldUserName.getText().trim().length()>50)
            {
                 try {
                    ImageIcon iic = new ImageIcon(f.getCanonicalPath()+"\\src\\callcenter\\resources\\Images\\administrator_business_man_consultancy_man_user_icon.png");
                    JOptionPane.showMessageDialog(null, "Username  must not exceed 50 characters", "Notice", 0, iic);
                } catch (Exception e) {
                    System.out.println("loi o day:"+e);
                }
                 jTextFieldUserName.requestFocus();
                 return;
            }
            if(jTextFieldUserName.getText().trim().length()<4)
            {
                this.jLabelKTUserName.setText("UserName >= 4");
                jTextFieldUserName.requestFocus();
                return;
            }
                  
            if(jPasswordFieldPassWord.getText().equals(""))
            {
                this.jLabelKTPassWord.setText("Not Null");
                jPasswordFieldPassWord.requestFocus();
                return;
            }
            if(jPasswordFieldPassWord.getText().trim().length()<4)
            {
                this.jLabelKTPassWord.setText("PassWord>=4");
                jPasswordFieldPassWord.requestFocus();
                return;
            }
            if(jPasswordFieldPassWord.getText().trim().length()>50)
            {
                
                 try {
                    ImageIcon iic = new ImageIcon(f.getCanonicalPath()+"\\src\\callcenter\\resources\\Images\\administrator_business_man_consultancy_man_user_icon.png");
                    JOptionPane.showMessageDialog(null, "Password  must not exceed 50 characters", "Notice", 0, iic);
                } catch (Exception e) {
                    System.out.println("loi o day:"+e);
                }
                 jPasswordFieldPassWord.requestFocus();
                 return;
            }
            if(jTextFieldAddress.getText().equals(""))
            {
                this.jLabelKTAddress.setText("Not Null");
                jTextFieldAddress.requestFocus();
                return;
            }
            if(jTextFieldAddress.getText().trim().length()>50)
            {
                
                 try {
                    ImageIcon iic = new ImageIcon(f.getCanonicalPath()+"\\src\\callcenter\\resources\\Images\\administrator_business_man_consultancy_man_user_icon.png");
                    JOptionPane.showMessageDialog(null, "Address  must not exceed 50 characters", "Notice", 0, iic);
                } catch (Exception e) {
                    System.out.println("loi o day:"+e);
                }
                 jTextFieldAddress.requestFocus();
                 return;
            }
             if(jTextFieldEmail.getText().equals(""))
            {
                this.jLabelKTEmail.setText("Not Null");
                jTextFieldEmail.requestFocus();
                return;
            }
             if(jTextFieldEmail.getText().trim().length()>50)
             {
                  
                 try {
                    ImageIcon iic = new ImageIcon(f.getCanonicalPath()+"\\src\\callcenter\\resources\\Images\\administrator_business_man_consultancy_man_user_icon.png");
                    JOptionPane.showMessageDialog(null, "Email  must not exceed 50 characters", "Notice", 0, iic);
                } catch (Exception e) {
                    System.out.println("loi o day:"+e);
                }
                 jTextFieldEmail.requestFocus();
                 return;
                         
             }
            if(!Check.isValidEmail(jTextFieldEmail.getText()))
            {
                this.jLabelKTEmail.setText("Email Invalid");
                jTextFieldEmail.requestFocus();
                return;
            }
            if(jTextFieldPhone.getText().equals(""))
            {
                this.jLabelKTPhone.setText("Not Null");
                jTextFieldPhone.requestFocus();
                return;
            }
            if(jTextFieldPhone.getText().trim().length()>50)
            {   
                 try {
                    ImageIcon iic = new ImageIcon(f.getCanonicalPath()+"\\src\\callcenter\\resources\\Images\\administrator_business_man_consultancy_man_user_icon.png");
                    JOptionPane.showMessageDialog(null, "Phone  must not exceed 50 characters", "Notice", 0, iic);
                } catch (Exception e) {
                    System.out.println("loi o day:"+e);
                }
                 jTextFieldPhone.requestFocus();
                 return;
            }
           if(jComboBoxAuthority.getSelectedItem().equals("--select--"))
           {
               this.jLabelKTAuthority.setText("Chose");
               jComboBoxAuthority.requestFocus();
               return;
           }
       try
       {
           
          if(KTInsert(jTextFieldUserName.getText())==false)
           { 
               try {
                    ImageIcon iic = new ImageIcon(f.getCanonicalPath()+"\\src\\callcenter\\resources\\Images\\administrator_business_man_consultancy_man_user_icon.png");
                    JOptionPane.showMessageDialog(null, "Account was used", "Notice", 0, iic);
                } catch (Exception e) {
                    System.out.println("loi o day:"+e);
                }
           }
           else
           {
                 ad.Insert_Administative();
                     try {
                    ImageIcon iic = new ImageIcon(f.getCanonicalPath()+"\\src\\callcenter\\resources\\Images\\add_add_user_group_new_user_icon.png");
                    JOptionPane.showMessageDialog(null, "Add successful", "Notice", 0, iic);
                      
                        } catch (Exception e) {
                                 System.out.println("loi1"+e);
                        }
                      int b= (count*5)-5;
                      Showlist(b, count*5);
          }
       }
       catch(Exception ex)
       {
           System.out.println("loii"+ex);
            try {
                    ImageIcon iic = new ImageIcon(f.getCanonicalPath()+"\\src\\callcenter\\resources\\Images\\add_add_user_group_new_user_icon.png");
                    JOptionPane.showMessageDialog(null, "Add failure", "Notice", 0, iic);
                } catch (Exception e) {
                       System.out.println("loi2"+e);
                } 
       }
          
        
        
        
        
        
    }//GEN-LAST:event_jButtonAddActionPerformed

    private void jTextFieldFullNameFocusLost(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_jTextFieldFullNameFocusLost
        if(!jTextFieldFullName.getText().equals(""))
            this.jLabelKTFullName.setText("");
    }//GEN-LAST:event_jTextFieldFullNameFocusLost

    private void jTextFieldUserNameFocusLost(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_jTextFieldUserNameFocusLost
        if(!jTextFieldUserName.getText().equals(""))
            this.jLabelKTUserName.setText("");
        
    }//GEN-LAST:event_jTextFieldUserNameFocusLost

    private void jPasswordFieldPassWordFocusLost(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_jPasswordFieldPassWordFocusLost
        if(!jPasswordFieldPassWord.getText().equals(""))
            this.jLabelKTPassWord.setText("");
    }//GEN-LAST:event_jPasswordFieldPassWordFocusLost

    private void jTextFieldAddressFocusLost(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_jTextFieldAddressFocusLost
        if(!jTextFieldAddress.getText().equals(""))
            this.jLabelKTAddress.setText("");
    }//GEN-LAST:event_jTextFieldAddressFocusLost

    private void jTextFieldEmailFocusLost(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_jTextFieldEmailFocusLost
        if(!jTextFieldEmail.getText().equals(""))
            this.jLabelKTEmail.setText("");
    }//GEN-LAST:event_jTextFieldEmailFocusLost

    private void jTextFieldPhoneFocusLost(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_jTextFieldPhoneFocusLost
        if(!jTextFieldPhone.getText().equals(""))
            this.jLabelKTPhone.setText("");
    }//GEN-LAST:event_jTextFieldPhoneFocusLost

    private void jComboBoxAuthorityFocusLost(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_jComboBoxAuthorityFocusLost
        if(!jComboBoxAuthority.getSelectedItem().equals("--select--"))
            this.jLabelKTAuthority.setText("");
    }//GEN-LAST:event_jComboBoxAuthorityFocusLost

    private void jTableadministrativeMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jTableadministrativeMouseClicked
      
        
        kt=true;
        String index=jTableadministrative.getValueAt(jTableadministrative.getSelectedRow(),0).toString();
      jLabel10.setText(index);
      click();
    }//GEN-LAST:event_jTableadministrativeMouseClicked

    private void jTableadministrativeKeyReleased(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_jTableadministrativeKeyReleased
       click();
    }//GEN-LAST:event_jTableadministrativeKeyReleased

    private void jButtonEditActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonEditActionPerformed

        if(kt==false)
        {
            try {
                    ImageIcon iic = new ImageIcon(f.getCanonicalPath()+"\\src\\callcenter\\resources\\Images\\add_add_user_group_new_user_icon.png");
                    JOptionPane.showMessageDialog(null, "Choose Account to edit", "Notice", 0, iic);
                } catch (Exception e) {
                    System.out.println("loi hinh anh:"+e);
                }
        }
      else
        {
            Edit_ad();
        }
    }//GEN-LAST:event_jButtonEditActionPerformed

    private void jButtonRefreshActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonRefreshActionPerformed
        kt=false;
        jTextFieldFullName.setText("");
        jTextFieldUserName.setEditable(true);
        jTextFieldUserName.setText("");
        jTextFieldAddress.setText("");
        jTextFieldEmail.setText("");
        jTextFieldPhone.setText("");
        jPasswordFieldPassWord.setText("");
        jComboBoxAuthority.setSelectedItem("--select--");
        jLabel10.setText("");
        jLabelKTUserName.setText("");
        jLabelKTFullName.setText("");
        jLabelKTPassWord.setText("");
        jLabelKTAddress.setText("");
        jLabelKTEmail.setText("");
        jLabelKTPhone.setText("");
        jLabelKTAuthority.setText("");
        
        
        
        
    }//GEN-LAST:event_jButtonRefreshActionPerformed
public boolean KTDelete(String id)
{
    boolean kq=true;
    if(!Administative.KTDelete_Administative(id)||!Administative.KTDelete_Administative1(id)||!Administative.KTDelete_Administative2(id))
    {
        kq=false;
    }
    else
    {
        kq=true;
    }
    return kq;
}
public boolean KTInsert(String uer)
{
    boolean kq=true;
    if(!Administative.KTInsert_admin(uer))
    {
        kq=false;
    }
    else
    {
        kq=true;
    }
    return kq;
}
private void DeleteAdmin()
{
    
        if(KTDelete(jLabel10.getText())==false)
        {
           // JOptionPane.showMessageDialog(null, "Can not delete this account");
             try {
                    ImageIcon iic = new ImageIcon(f.getCanonicalPath()+"\\src\\callcenter\\resources\\Images\\add_add_user_group_new_user_icon.png");
                    JOptionPane.showMessageDialog(null, "Can not delete this account", "Notice", 0, iic);
                } catch (Exception e) {
                }
        }
        else
        {
        String index=this.jTableadministrative.getValueAt(this.jTableadministrative.getSelectedRow(),0).toString();
        int index1=Integer.parseInt(index);
       int option=JOptionPane.showConfirmDialog(null, "You sure you want to delete", "Dangerous",JOptionPane.OK_CANCEL_OPTION);
       if(option==JOptionPane.OK_OPTION)
       {
           Administative ad=new Administative();
           ad.setUserName(index);
           if(ad.Delete_Administative(index1))
           {
               this.jTextFieldFullName.setText("");
               this.jTextFieldUserName.setText("");
               this.jPasswordFieldPassWord.setText("");
               this.jTextFieldAddress.setText("");
               this.jTextFieldEmail.setText("");
               this.jTextFieldPhone.setText("");
               this.jComboBoxAuthority.setSelectedItem("--select--");
               //JOptionPane.showMessageDialog(null, "Delete Success");
               
                        
               try {
                    ImageIcon iic = new ImageIcon(f.getCanonicalPath()+"\\src\\callcenter\\resources\\Images\\delete_edit_trash_icon.png");
                    JOptionPane.showMessageDialog(null, "Delete Success", "Notice", 0, iic);
                    if(count>Administative.Count()/5)
                        {
                            int d=(count-1)*5;
                            Showlist(d, Administative.Count());
                            jButtonNext.setEnabled(false);
                        }
                        else
                        {

                            int b= (count*5)-5;
                        jLabel10.setText(String.valueOf(count));

                        Showlist(b, count*5);
                        }
                } catch (Exception e) {
                }
               

           }
           else
           {
               //JOptionPane.showMessageDialog(null, "Delete Failure");
                try {
                    ImageIcon iic = new ImageIcon(f.getCanonicalPath()+"\\src\\callcenter\\resources\\Images\\delete_edit_trash_icon.png");
                    JOptionPane.showMessageDialog(null, "Delete Failure", "Notice", 0, iic);
                } catch (Exception e) {
                }
           }
           
       }
        
        }
        
        
}
    private void jButtonDeleteActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonDeleteActionPerformed
      
      if(kt==false)
        
        {
            //JOptionPane.showMessageDialog(null, "Chose the account to Delete"); 
             try {
                    ImageIcon iic = new ImageIcon(f.getCanonicalPath()+"\\src\\callcenter\\resources\\Images\\add_add_user_group_new_user_icon.png");
                    JOptionPane.showMessageDialog(null, "Chose the account to Delete", "Notice", 0, iic);
                } catch (Exception e) {
                }
        }
         else
        {
            DeleteAdmin();
            
            
        }
        
        
        
    }//GEN-LAST:event_jButtonDeleteActionPerformed

    private void jTableSearchMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jTableSearchMouseClicked
        click1();
    }//GEN-LAST:event_jTableSearchMouseClicked

    private void jTableSearchKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_jTableSearchKeyPressed
        click1();
    }//GEN-LAST:event_jTableSearchKeyPressed

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton jButtonAdd;
    private javax.swing.JButton jButtonDelete;
    private javax.swing.JButton jButtonEdit;
    private javax.swing.JButton jButtonEnter;
    private javax.swing.JButton jButtonEnterSearch;
    private javax.swing.JButton jButtonNext;
    private javax.swing.JButton jButtonNextSearch;
    private javax.swing.JButton jButtonPrevious;
    private javax.swing.JButton jButtonPreviousSearch;
    private javax.swing.JButton jButtonRefresh;
    private javax.swing.JButton jButtonSearch;
    private javax.swing.JComboBox jComboBoxAuthority;
    private javax.swing.JLabel jLabel10;
    private javax.swing.JLabel jLabel7;
    private javax.swing.JLabel jLabelAccountName;
    private javax.swing.JLabel jLabelAddress;
    private javax.swing.JLabel jLabelAuthority;
    private javax.swing.JLabel jLabelEmail;
    private javax.swing.JLabel jLabelFullName;
    private javax.swing.JLabel jLabelKTAddress;
    private javax.swing.JLabel jLabelKTAuthority;
    private javax.swing.JLabel jLabelKTEmail;
    private javax.swing.JLabel jLabelKTFullName;
    private javax.swing.JLabel jLabelKTPassWord;
    private javax.swing.JLabel jLabelKTPhone;
    private javax.swing.JLabel jLabelKTSearchAccountNamee;
    private javax.swing.JLabel jLabelKTUserName;
    private javax.swing.JLabel jLabelPassWord;
    private javax.swing.JLabel jLabelPhone;
    private javax.swing.JLabel jLabelUserName;
    private javax.swing.JLabel jLabelvalues2;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JPanel jPanel10;
    private javax.swing.JPanel jPanel100;
    private javax.swing.JPanel jPanel101;
    private javax.swing.JPanel jPanel102;
    private javax.swing.JPanel jPanel103;
    private javax.swing.JPanel jPanel104;
    private javax.swing.JPanel jPanel105;
    private javax.swing.JPanel jPanel106;
    private javax.swing.JPanel jPanel107;
    private javax.swing.JPanel jPanel108;
    private javax.swing.JPanel jPanel109;
    private javax.swing.JPanel jPanel11;
    private javax.swing.JPanel jPanel110;
    private javax.swing.JPanel jPanel111;
    private javax.swing.JPanel jPanel112;
    private javax.swing.JPanel jPanel113;
    private javax.swing.JPanel jPanel114;
    private javax.swing.JPanel jPanel115;
    private javax.swing.JPanel jPanel116;
    private javax.swing.JPanel jPanel117;
    private javax.swing.JPanel jPanel118;
    private javax.swing.JPanel jPanel119;
    private javax.swing.JPanel jPanel12;
    private javax.swing.JPanel jPanel13;
    private javax.swing.JPanel jPanel14;
    private javax.swing.JPanel jPanel15;
    private javax.swing.JPanel jPanel16;
    private javax.swing.JPanel jPanel17;
    private javax.swing.JPanel jPanel18;
    private javax.swing.JPanel jPanel19;
    private javax.swing.JPanel jPanel2;
    private javax.swing.JPanel jPanel20;
    private javax.swing.JPanel jPanel21;
    private javax.swing.JPanel jPanel22;
    private javax.swing.JPanel jPanel23;
    private javax.swing.JPanel jPanel24;
    private javax.swing.JPanel jPanel25;
    private javax.swing.JPanel jPanel26;
    private javax.swing.JPanel jPanel27;
    private javax.swing.JPanel jPanel28;
    private javax.swing.JPanel jPanel29;
    private javax.swing.JPanel jPanel3;
    private javax.swing.JPanel jPanel30;
    private javax.swing.JPanel jPanel31;
    private javax.swing.JPanel jPanel32;
    private javax.swing.JPanel jPanel33;
    private javax.swing.JPanel jPanel34;
    private javax.swing.JPanel jPanel35;
    private javax.swing.JPanel jPanel36;
    private javax.swing.JPanel jPanel37;
    private javax.swing.JPanel jPanel38;
    private javax.swing.JPanel jPanel39;
    private javax.swing.JPanel jPanel4;
    private javax.swing.JPanel jPanel40;
    private javax.swing.JPanel jPanel41;
    private javax.swing.JPanel jPanel42;
    private javax.swing.JPanel jPanel43;
    private javax.swing.JPanel jPanel44;
    private javax.swing.JPanel jPanel45;
    private javax.swing.JPanel jPanel46;
    private javax.swing.JPanel jPanel47;
    private javax.swing.JPanel jPanel48;
    private javax.swing.JPanel jPanel49;
    private javax.swing.JPanel jPanel5;
    private javax.swing.JPanel jPanel50;
    private javax.swing.JPanel jPanel51;
    private javax.swing.JPanel jPanel52;
    private javax.swing.JPanel jPanel53;
    private javax.swing.JPanel jPanel54;
    private javax.swing.JPanel jPanel55;
    private javax.swing.JPanel jPanel56;
    private javax.swing.JPanel jPanel57;
    private javax.swing.JPanel jPanel58;
    private javax.swing.JPanel jPanel59;
    private javax.swing.JPanel jPanel6;
    private javax.swing.JPanel jPanel60;
    private javax.swing.JPanel jPanel61;
    private javax.swing.JPanel jPanel62;
    private javax.swing.JPanel jPanel63;
    private javax.swing.JPanel jPanel64;
    private javax.swing.JPanel jPanel65;
    private javax.swing.JPanel jPanel66;
    private javax.swing.JPanel jPanel67;
    private javax.swing.JPanel jPanel68;
    private javax.swing.JPanel jPanel69;
    private javax.swing.JPanel jPanel7;
    private javax.swing.JPanel jPanel70;
    private javax.swing.JPanel jPanel71;
    private javax.swing.JPanel jPanel72;
    private javax.swing.JPanel jPanel73;
    private javax.swing.JPanel jPanel74;
    private javax.swing.JPanel jPanel75;
    private javax.swing.JPanel jPanel76;
    private javax.swing.JPanel jPanel77;
    private javax.swing.JPanel jPanel78;
    private javax.swing.JPanel jPanel79;
    private javax.swing.JPanel jPanel8;
    private javax.swing.JPanel jPanel80;
    private javax.swing.JPanel jPanel81;
    private javax.swing.JPanel jPanel82;
    private javax.swing.JPanel jPanel83;
    private javax.swing.JPanel jPanel84;
    private javax.swing.JPanel jPanel85;
    private javax.swing.JPanel jPanel86;
    private javax.swing.JPanel jPanel87;
    private javax.swing.JPanel jPanel88;
    private javax.swing.JPanel jPanel89;
    private javax.swing.JPanel jPanel9;
    private javax.swing.JPanel jPanel90;
    private javax.swing.JPanel jPanel91;
    private javax.swing.JPanel jPanel92;
    private javax.swing.JPanel jPanel93;
    private javax.swing.JPanel jPanel94;
    private javax.swing.JPanel jPanel95;
    private javax.swing.JPanel jPanel96;
    private javax.swing.JPanel jPanel97;
    private javax.swing.JPanel jPanel98;
    private javax.swing.JPanel jPanel99;
    private javax.swing.JPasswordField jPasswordFieldPassWord;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JScrollPane jScrollPane2;
    private javax.swing.JTabbedPane jTabbedPane1;
    private javax.swing.JTable jTableSearch;
    private javax.swing.JTable jTableadministrative;
    private javax.swing.JTextField jTextField1;
    private javax.swing.JTextField jTextField13;
    private javax.swing.JTextField jTextField3;
    private javax.swing.JTextField jTextField4;
    private javax.swing.JTextField jTextField9;
    private javax.swing.JTextField jTextFieldAccountName;
    private javax.swing.JTextField jTextFieldAddress;
    private javax.swing.JTextField jTextFieldEmail;
    private javax.swing.JTextField jTextFieldEnter;
    private javax.swing.JTextField jTextFieldFullName;
    private javax.swing.JTextField jTextFieldPhone;
    private javax.swing.JTextField jTextFieldUserName;
    // End of variables declaration//GEN-END:variables
}
